<?php
	//Xay dung tim kiem
	$ssFilter 		= $this->arrParam['ssFilter'];
	$page = '';
	if(isset($this->arrParam['page'])){
		$page = '/page/' . $this->arrParam['page'];
	}
	
	
	//---------------------GROUP SELECTBOX --------------------//
	
	
	
	
	
	
	?>

<div class="left_content">
	<?php echo $this->render($this->arrParam['controller'] . '/toolbar/left.php');?>
</div>

<div class="right_content">
	<div class="appContent">
	<?php 
	
	$kh_email 		= $this->Infoitem['email'];
	$kh_name 		= $this->Infoitem['name'];
	$kh_created 	= $this->Infoitem['kh_created'];
	$kh_email 		= $this->Infoitem['email'];
	$kh_phone 		= $this->Infoitem['phone'];
	$kh_birthday 	= $this->Infoitem['birthday'];
	$kh_username 	= $this->Infoitem['user_name'];
	$kh_phongban 	= $this->Infoitem['phongban_name'];
	
	?>
	
	
	<form action="" method="post" name="appForm">
		<?php echo $this->render($this->arrParam['controller'] . '/toolbar/index.php');?>
		<?php
			if($this->arrParam['save'] == 'ok'){
				echo '<div class="thongbaoThanhCong goc5">Xử lý dữ liệu thành công</div>';
			} 
		?>
		<div class="formList goc5">
			<table class="tblList">
				<tr>
					<th width="30" align="left">Họ Và Tên :</th>
					<th width="100" align="left"><?php echo $kh_name;?></th>
				</tr>
				<tr>
					<th width="30" align="left">Ngày thêm mới :</th>
					<th width="100" align="left"><?php echo $kh_created;?></th>
				</tr>
				<tr>
					<th width="30" align="left">Email :</th>
					<th width="100" align="left"><?php echo $kh_email;?></th>
				</tr>
				<tr>
					<th width="30" align="left">Phone :</th>
					<th width="100" align="left"><?php echo $kh_phone;?></th>
				</tr>
				<tr>
					<th width="30" align="left">Ngày sinh :</th>
					<th width="100" align="left"><?php echo $kh_birthday?></th>
				</tr>
				<tr>
					<th width="30" align="left">Người quản lý :</th>
					<th width="100" align="left"><?php echo $kh_username;?></th>
				</tr>
				<tr>
					<th width="30" align="left">Phòng ban quản lý :</th>
					<th width="100" align="left"><?php echo $kh_phongban;?></th>
				</tr>
				
				<tr>
					<th width="100" align="left">Thêm lịch sử :</th>
					<th width="100" align="left"><?php echo $meta_name;?></th>
				</tr>
				
			</table>
			
				
			
		
			<div class="appTop goct5">
				
			</div>
			<div class="appBody">
				<table class="tblList">
					<tr>
						<th width="80">Tên lớp học</th>
						<th width="100">Tên khóa học</th>
						<th width="100">Ngày bắt đầu </th>
						<th width="100">Ngày kết thúc </th>
					</tr>
					
					<?php 
					
						foreach ($this->Items as $key => $val) {
							$lophoc_name			= $val['lophoc_name'];
							$khoahoc_name 			= $val['khoahoc_name'];
							$ngaykhaigiang			= $val['ngaykhaigiang'];
							$ngayketthuc			= $val['ngayketthuc'];
							
					?>
							<tr >
							<td align="left">
								<?php echo $lophoc_name; ?>
							</td>
							
							<td align="left">
								<?php echo $khoahoc_name;?>
							</td>
							<td align="center">
							<?php echo $ngaykhaigiang; ?>
							</td>
							
							
							<td align="center">
							<?php echo $ngayketthuc; ?>
							</td>
							
							</tr>
					<?php
						}
					?>					
				</table>
			</div>
			<div class="appBottom">
				<div class="pagination">
					<?php
						$currentUrl = $this->baseUrl($this->currentController . '/index');
						echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml', array('currentUrl'=>$currentUrl)); 
					?>
				</div>
			</div>
		</div>
	</form>
	</div>
</div>
<div class="clr"></div>	
<script type="text/javascript">
	function showFunction(i){
		$('.selectFunction' + i).show();
		$('body').append('<div id="overlay" style="width:100%; height:100%; top: 0; left: 0; z-index: 499; position: fixed;" onclick="hideOption()"></div>');
	}
	function hideOption(){
		$('.blockFunction').hide();
		$('#overlay').remove();
	}
</script>
